Repository navigation
glpython-editor v0.1.22: input() asks in the console (P36) - #33
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps glpython-editor from
v0.1.21tov0.1.22(merge commit 9b734fe, glpython-editor#46) and adds browser checks for it (P36). The IDE's own code doesn't change.What changes in the IDE
input()asks in the console instead of a dialog. While the program waits, the>>>line becomes its input line, with the prompt in front and the cursor in it.> 2 * (3 + 4)); then>>>comes back.EOFError: EOF when reading a line, without restarting Python.Checks
scripts/check-ide-browser.mjshas two new cases:input("Name: "), the prompt in front of the line, the focus in it, thenName: Zoë/Hallo Zoë.EOFError:repl()in the REPL, three answers, a transcript like a shell;repl()again, Stop while it waits:EOFErrorand no restart;berechnen("2 ** 10")still answers 1024.Locally green:
npm ci,build,test:browser(all cases);lint, with only the warnings incoi-serviceworker.js, as onmain.CLAUDE.md lists the new cases.
Manual tests (after the deploy)
Chrome on the desktop:
name = input("Name: ")/print("Hallo", name): the console asks; Enter →Name: Zoë,Hallo Zoë;>>>comes back.berechnen,repl): ▶, thenrepl()in the REPL, three expressions,ende.repl()again, then Stop while it waits:EOFError: EOF when reading a line, no «Python wurde neu gestartet», andberechnen("2 ** 10")still works.EOFError.input(): it asks first, then the steps;input(...)is one step with the typed text.input()at the top: it asks first, then the report.iPad (Safari, software keyboard):
7. Test 1: after ▶ (a tap on a button), does the keyboard come up by itself, or does the line need a tap? Does return send the line?
8. Test 2: after
repl()+ return, does the keyboard stay up so the next line can be typed right away?9. Test 3: Stop while the keyboard is up.
🤖 Generated with Claude Code